PaymentPlugins\WooCommerce\PPCP\Payments\Gateways\AbstractGateway A

Total Complexity 63
Dependencies 16
Dependents 22
Total lines 419
Lines of code 259
Logical lines of code 136
Comment lines 75
Methods 39
Properties 10

Methods 39

Method Rating Maintainability Complexity Lines of code
process_payment()
A
49 9 30
add_payment_method()
A
46 7 38
process_refund()
S
50 4 29
payment_fields()
S
57 2 15
add_section_enabled()
S
68 2 7
render_html_data()
S
70 2 5
get_billing_token_from_request()
S
76 2 3
get_transaction_url()
S
68 2 7
is_payment_method_save_required()
S
68 2 7
add_payment_complete_note()
S
65 2 9
__construct()
S
60 1 14
init_hooks()
S
74 1 4
get_admin_script_dependencies()
S
82 1 3
get_checkout_script_handles()
S
82 1 3
get_cart_script_handles()
S
82 1 3
get_product_script_handles()
S
82 1 3
get_express_checkout_script_handles()
S
82 1 3
get_minicart_script_handles()
S
82 1 3
get_payment_method_data()
S
82 1 3
get_admin_script_data()
S
91 1 2
is_section_enabled()
S
78 1 3
is_checkout_section_enabled()
S
80 1 3
is_cart_section_enabled()
S
80 1 3
is_product_section_enabled()
S
80 1 3
is_express_section_enabled()
S
80 1 3
is_minicart_section_enabled()
S
80 1 3
cart_fields()
S
67 1 7
product_fields()
S
67 1 7
express_checkout_fields()
S
91 1 2
get_saved_payment_method_option_html()
S
76 1 4
get_payment_method_token_instance()
S
69 1 7
get_product_form_fields()
S
82 1 3
is_place_order_button()
S
82 1 3
validate_paypal_order()
S
91 1 2
should_save_payment_method()
S
82 1 3
get_save_payment_method()
S
81 1 3
set_save_payment_method()
S
81 1 3
get_payment_method_type()
S
82 1 3
is_immediate_payment_required()
S
82 1 3